<#macro templateTree filepath>
	<@_templateList path='/include'+filepath>
		<@_placeMetadata dir=filepath><#local metaDataMap=object/></@_placeMetadata>
		<#list list as a>
			<li>
			<#local path=filepath+'/'+a.fileName>
				<a href="cmsTemplate/placeContent.html?path=${path?url}" target="ajax" rel="cmsTemplatePlace">
					${(metaDataMap[a.fileName].alias)!a.fileName}
				</a>
			<#if a.directory>
				<ul>
					<@templateTree path/>
				</ul>
			</#if>
			</li>
		<#else>
			<li><a>空目录</a></li>
		</#list>
	</@_templateList>
</#macro>
	<div layoutH="0" style="float:left; display:block; overflow:auto; width:240px;border-right:solid 1px #CCC; line-height:21px;">
		<h2 class="contentTitle">
			<a class="button" href="cmsTemplate/createPlace.html?path=${(path?url)!}" target="navTab" rel="cmsTemplate/createPlace">创建推荐位</a>
		</h2>
		<ul class="tree treeFolder" layoutH="44">
			<li>
				<a href="javascript:;">推荐位</a>
				<ul><@templateTree path/></ul>
			</li>
	     </ul>
	</div>
	<div id="cmsTemplatePlace" style="margin-left:240px;">
		
	</div>
</div>